package com.meihua.shellapp.adapter.personalcenter;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.meihua.shellapp.R;

public class AchievementSelectFragmentAdapter extends RecyclerView.Adapter<AchievementSelectFragmentAdapter.AchievementSelectHandler> {


    public AchievementSelectFragmentAdapter(Context context) {
    }

    @Override
    public AchievementSelectHandler onCreateViewHolder(ViewGroup parent, int viewType) {
        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_makerselect, null);
        // 实例化viewholder
        AchievementSelectHandler viewHolder = new AchievementSelectHandler(view);
        return viewHolder;
    }

    @Override
    public void onBindViewHolder(AchievementSelectHandler holder, int position) {
    }


    @Override
    public int getItemCount() {
        return 10;
    }


    public class AchievementSelectHandler extends RecyclerView.ViewHolder {

        public AchievementSelectHandler(View itemView) {
            super(itemView);
        }
    }
}